package icu.feigroup.infrastructure.dao;

import icu.feigroup.infrastructure.dao.po.NotifyTask;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * projectName:icu.feigroup.infrastructure.dao
 *
 * @author 飞
 * @since 2025/2/25 20:53
 * description:
 */
@Mapper
public interface NotifyTaskMapper {
    void insert(NotifyTask notifyTask);

    List<NotifyTask> queryUnExecutedNotifyTaskList();

    NotifyTask queryUnExecutedNotifyTaskByTeamId(String teamId);

    int updateNotifyTaskStatusSuccess(String teamId);

    int updateNotifyTaskStatusError(String teamId);

    int updateNotifyTaskStatusRetry(String teamId);
}
